import request from "@/utils/request";
//新增接口
export const addProdSection = (data) => {
  return request({
    url: "base/prodSection/add",
    method: "post",
    data,
  });
};
//编辑接口
export const updateProdSection = (data) => {
  return request({
    url: "base/prodSection/edit",
    method: "post",
    data,
  });
};
//查询接口
export const listProdSection = (params) => {
  return request({
    url: "base/prodSection/list",
    method: "get",
    params,
  });
};
//删除接口
export const delProdSection = (params, data) => {
  return request({
    url: "base/prodSection/delete",
    method: "post",
    params,
    data,
  });
};
export const delBatchProdSection = (params, data) => {
  return request({
    url: "base/prodSection/deleteBatch",
    method: "post",
    params,
    data,
  });
};
//数据回显接口
export const getProdSection = (data) => {
  return request({
    url: `base/prodSection/queryById?id=${data}`,
    method: "post",
    data,
  });
};

// 岗位列表
export const getStation = (params) => {
  return request({
    url: `base/station/list`,
    method: "get",
    params,
  });
};
// 岗位列表
export const addStation = (data) => {
  return request({
    url: `base/station`,
    method: "post",
    data,
  });
};
// 岗位列表
export const delStation = (ids) => {
  return request({
    url: `base/station/${ids}`,
    method: "delete",
  });
};
